package com.gg.fmallspringboot.controller;


import com.gg.fmallspringboot.model.Result;
import com.gg.fmallspringboot.service.UserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author wx
 * @date 2021-06-18 19:11:02
 */
@RestController
@CrossOrigin
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;
    @GetMapping("/login")
    public Result login(String userName, String password){
        Result result = userService.check(userName, password);
        return result;
    }
}
